package tcnplanner;

import java.io.Serializable;
import javax.persistence.Embeddable;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;

/**
 * Wordt nog afgevraagd hoe testen het beste te onderscheiden:
 * 
 * Via inheritance of via attribuut "testSoort"
 */

@Embeddable
public class Test implements Serializable{

//    public static enum TestStatus {
//
//        REPORTED, PLANNED, CONSTRUCTING, WAITING, INPROCESS, DONE
//    };

    public static enum TestType {

        WAFERBATCH, FINALPRODUCT
    };
    @Enumerated(EnumType.STRING)
//    private TestStatus currentStatus;
    private TestType testType;
    private String product;
    private int productCount;

    public Test(){}

    public Test(TestType testType, String product, int productcount) {
        //this.currentStatus = TestStatus.REPORTED;
        this.testType = testType;
        this.product = product;
        this.productCount = productcount;
    }

//    public TestStatus getStatus() {
//        return currentStatus;
//    }
//
//    public boolean setStatus(TestStatus newStatus) {
//        if (currentStatus.compareTo(newStatus) == 1) {
//            currentStatus = newStatus;
//            return true;
//        }
//        return false;
//    }

    public TestType getTestType() {
        return testType;
    }

    public String getProduct() {
        return product;
    }

    public int getProductCount() {
        return productCount;
    }
}